#ifndef RUN_ONCE_THREAD_H_
#define RUN_ONCE_THREAD_H_

#include "Thread.h"
#include <cassert>

class RunOnceThread : public Thread
{
    //implementation
public:
    virtual void vRun()
    {
        vProcess();
        m_tActive = false;
    }
    virtual void vStop()
    {
        assert(0); //not possible douche bag!
    }
    virtual void vPause()
    {
        assert(0);
        //not supported, try a conditional thread
    }
    virtual void vResume()
    {
        vPause();
    }
};

#endif